import { createRouter, createWebHistory } from 'vue-router';
import LayOut from '../components/LayOut/index.vue';
const routes = [
  {
    path: '/',
    name: '/',
    redirect: '/Home',
    component: LayOut,
    children: [
      {
        path: '/Home',
        name: 'Home',
        component: () => import('@/views/HomeView/index.vue')
      },
    ]
  },
];
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});
export default router;
